package com.leancloud.home.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.aries.ui.view.title.TitleBarView;
import com.leancloud.home.R;

import tech.com.commoncore.base.BaseTitleActivity;
import tech.com.commoncore.utils.OnNoDoubleClickListener;

/**
 * 申请份额计算
 */
public class ApplyActivity extends BaseTitleActivity {


    private EditText etMoney;
    private EditText etNetWorth;
    private EditText etRate;
    private Button btnStart;
    private Button btnAgain;
    private TextView tvServiceCharge;
    private TextView tvApplyForShare;

    @Override
    public void setTitleBar(TitleBarView titleBar) {
        titleBar.setTitleMainText(getResources().getString(R.string.home_apply_title));
    }

    @Override
    public int getContentLayout() {
        return R.layout.home_activity_apply;
    }

    @Override
    public void initView(Bundle savedInstanceState) {

        etMoney = (EditText) findViewById(R.id.et_money);
        etNetWorth = (EditText) findViewById(R.id.et_net_worth);
        etRate = (EditText) findViewById(R.id.et_rate);
        btnStart = (Button) findViewById(R.id.btn_start);
        btnAgain = (Button) findViewById(R.id.btn_again);
        tvServiceCharge = (TextView) findViewById(R.id.tv_service_charge);
        tvApplyForShare = (TextView) findViewById(R.id.tv_apply_for_share);




        //开始计算
        btnStart.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });
        //重新计算
        btnAgain.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });

    }
}
